package com.project_doctor.controller;

import com.project_doctor.pojo.Tag;
import com.project_doctor.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("tag")
public class TagController {
    @Autowired
    private TagService tagService;

    @GetMapping("/getAllTag")
    public ResponseEntity<?> getAllTag() {
        //居民标签
        List<Tag> list = tagService.getAllTag(1);
        return ResponseEntity.ok(list);
    }
}
